package com.carbon.feignclient;

import com.carbon.fallback.MemberFallback;
import com.carbon.model.Member;
import com.carbon.model.Result;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;


/**
 * @author yeshusheng
 * @version 1.0.0
 * @date 2021/6/28 19:01
 * @description  feignclient调用示例
 */
@FeignClient(value = "api-gateway",fallback= MemberFallback.class)
public interface MemberFeignClient {
    String baseURL = "/service-member/member";

    @RequestMapping(value = baseURL + "/login", method = RequestMethod.GET)
    Result<Member> login();
}
